home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / usr / share / ubuntu-docs / libs / ubuntu-html-chunk-cust.xsl < prev    next >
Extensible Markup Language  |  2009-10-18  |  3KB  |  80 lines

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  3.     <!-- This file is a customization layer for HTML only -->
  4.     <!-- ======================= -->
  5.     <!-- Imports -->
  6.     <xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/xhtml/chunk.xsl"/>
  7.     <xsl:import href="ubuntu-banner.xsl"/>    
  8.     <xsl:import href="draft-watermark-customisation.xsl"/>
  9.  
  10.     <!-- Params -->
  11.     <xsl:param name="generate.legalnotice.link" select="1"/>
  12.     <!-- requires DocBook XSL 1.69.1a -->
  13.     <xsl:param name="generate.revhistory.link" select="1"/>
  14.     <xsl:param name="toc.max.depth" select="2"/>
  15.     <xsl:param name="chunker.output.indent" select="'yes'"/>
  16.     <xsl:param name="body.font.master" select="10"/>
  17.     <xsl:param name="html.stylesheet" select="'../../libs/ubuntu-book.css'"/>
  18.     <xsl:param name="shade.verbatim" select="0"/>
  19.     <xsl:param name="draft.mode" select="'no'"/>
  20.     <xsl:param name="chunk.first.sections" select="'1'"/>
  21.     <!--Navigation Graphics-->
  22.     <xsl:param name="navig.graphics" select="1"/>
  23.     <xsl:param name="navig.graphics.path" select="'../../libs/navig/'"/>
  24.     <xsl:param name="navig.graphics.extension" select="'.png'"/> 
  25.     <xsl:param name="navig.showtitles" select="1"/>
  26.     
  27.     <!--Admon Graphics--> 
  28.     <xsl:param name="admon.graphics" select="1"/>
  29.     <xsl:param name="admon.textlabel" select="0"/>
  30.     <xsl:param name="admon.graphics.path" select="'../../libs/admon/'"/>
  31.     <xsl:param name="admon.graphics.extension" select="'.png'"/>
  32.     
  33.     <!-- Callout Graphics -->
  34.     <xsl:param name="callout.unicode" select="1"/>
  35.     <xsl:param name="callout.graphics" select="0"/>
  36.     <xsl:param name="callout.graphics.path" select="'../../libs/callouts/'"/>
  37.     <xsl:param name="callout.graphics.extension" select="'.png'"/>
  38.     
  39.     <!-- Inline Formatting -->
  40.     <xsl:template match="application">
  41.       <xsl:call-template name="inline.boldseq"/>
  42.     </xsl:template>
  43.     <xsl:template match="guibutton">
  44.       <xsl:call-template name="inline.boldseq"/>
  45.     </xsl:template>
  46.     <xsl:template match="guilabel">
  47.       <xsl:call-template name="inline.italicseq"/>
  48.     </xsl:template>
  49.  
  50.     <xsl:param name="use.id.as.filename" select="1"/>
  51.     
  52.     <!-- this strippath template is copied from the 1.68.1 version of common.xls  -->
  53.     <xsl:template name="strippath">
  54.       <xsl:param name="filename" select="''"/>
  55.       <xsl:choose>
  56.         <!-- Leading .. are not eliminated -->
  57.         <xsl:when test="starts-with($filename, '../')">
  58.           <xsl:value-of select="'../'"/>
  59.           <xsl:call-template name="strippath">
  60.             <xsl:with-param name="filename" select="substring-after($filename, '../')"/>
  61.           </xsl:call-template>
  62.         </xsl:when>
  63.         <xsl:when test="contains($filename, '/../')">
  64.           <xsl:call-template name="strippath">
  65.             <xsl:with-param name="filename">
  66.               <xsl:call-template name="getdir">
  67.                 <xsl:with-param name="filename" select="substring-before($filename, '/../')"/>
  68.               </xsl:call-template>
  69.               <xsl:value-of select="substring-after($filename, '/../')"/>
  70.             </xsl:with-param>
  71.           </xsl:call-template>
  72.         </xsl:when>
  73.         <xsl:otherwise>
  74.           <xsl:value-of select="$filename"/>
  75.         </xsl:otherwise>
  76.       </xsl:choose>
  77.     </xsl:template>
  78.  
  79. </xsl:stylesheet>
  80.